import { userType } from '@/store/reducer/user';
import request from '@/utils/request';
export const getUserProfileApi = () => {
  return request({ url: '/v1_0/user' });
};
export const getUserApi = () => {
  return request({ url: '/v1_0/user/profile' });
};
export const uploadPhotoApi = (formData: FormData) => {
  return request({ url: '/v1_0/user/photo', method: 'patch', data: formData });
};

export const updateUserProfileApi = (data: Partial<userType>) => {
  return request({ url: '/v1_0/user/profile', method: 'patch', data: data });
};
